package com.example.demo.util;

import com.example.demo.service.SocketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SocketUtils {
    public static SocketService socketService;
    @Autowired
    public SocketUtils(SocketService socketService){
        SocketUtils.socketService = socketService;
    }
    public static boolean isStartAll(Integer state){
       return socketService.isStartAll(state);
    }
}
